class Solution {
public:
    int maxContainers(int n, int w, int maxWeight) {
        int cnt = maxWeight / w;
        return min(cnt, n * n);
    }
};
